//
//  HELCompulsoryCell.m
//  HandheldELearn
//
//  Created by 陈武琦 on 16/7/12.
//  Copyright © 2016年 陈武琦. All rights reserved.
//

#import "HELCompulsoryCell.h"
#import "UIImageView+WebCache.h"
@implementation HELCompulsoryCell

- (void)setModel:(HELCompulsoryM *)model {
    _model = model;
    if (model.attachUrlMap) {
        [self.leftIcon sd_setImageWithURL:[NSURL URLWithString:model.attachUrlMap.mid] placeholderImage:[UIImage imageNamed:@"暂无图片.jpg"]];
    }
    self.title.text = model.name;
    self.learnPercent.text = [model.progress stringByAppendingString:@"%"];
    self.starLevel.text = model.viewNum;
    self.commentCount.text = model.commentNum;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    self.leftIcon.layer.borderWidth = 0.5;
    self.leftIcon.layer.borderColor = kBorderColor.CGColor;
    // Initialization code
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
